<?php
/**
 * Created by PhpStorm.
 * User: linlin
 * Date: 2017/3/27
 * Time: 13:38
 */
namespace Home\Controller;
use Think\Controller;
class AddclientController extends Controller {
    /*
     *
     * CelebrationGrey  zhoucong
     * POST方法
     * XXXX/index.php/Home/Addclient/addUser
     */
    public function addUser(){
        if($_POST){
            $info = I("post.");
            $user_info['user_name'] = $info['user_name'];
            $user_info['user_sex'] = $info['user_sex'];
            $user_info['user_tencent'] = $info['user_tencent'];
            $user_info['user_wechat'] = $info['user_wechat'];
            $user_info['user_phone'] = $info['user_phone'];
            $user_info['user_message'] = $info['user_message'];
            $user_info['user_address'] = $info['user_address'];
            $User = M("orui_users");
            $result = $User->data($user_info)->add();
            if($result){

            }
            else{

            }
            var_dump($result);
        }
        else{

        }
    }
}